package com.sunsys.examples.cxf.client;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.sunsys.examples.cxf.server.MessageService;

public class Client {

	public static void main(String []args) {
        ClassPathXmlApplicationContext context  
        		= new ClassPathXmlApplicationContext(new String[] {"beans.xml"});

        MessageService service = (MessageService) context.getBean("messageServiceClinet");
        String msgreply = service.processMsg("Hi ");
        System.out.println("reply is:"+msgreply);
	}
}
